package com.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.ForkJoinPool;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/5/26 18:39
 * @Description TODO
 */
@Configuration
public class CommonPoolConfig {


    @Bean(name = "forkJoinPool")
    public ExecutorService forkJoinPool() {
        return new ForkJoinPool();
    }

}
